package cn.zwx.multi_datasource_example;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
public class MultiDatasourceExampleApplication {

    private  static Logger logger = LoggerFactory.getLogger(MultiDatasourceExampleApplication.class);

    public static void main(String[] args) {

        try {
            SpringApplication.run(MultiDatasourceExampleApplication.class, args);
            logger.info("MultiDatasourceExampleApplication:启动成功!!");
        }catch (Exception e){
            e.printStackTrace();
        }
    }


}
